//
//  MeView.m
//  BGM
//
//  Created by liuqin on 2018/11/26.
//  Copyright © 2018年 com.alirtc.demo. All rights reserved.
//

#import "MeView.h"
#import "Common.h"
@implementation MeView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self != nil) {
         float center = frame.size.height/2;
        self.countLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 30, frame.size.width, center-30)];
        self.countLabel.text = @"45";

        self.countLabel.font = [UIFont systemFontOfSize:25];
        self.countLabel.textAlignment = NSTextAlignmentCenter;
        self.countLabel.textColor = bgmmainColor;
         [self addSubview:self.countLabel];
        
        self.label1 = [[UILabel alloc]initWithFrame:CGRectMake(0, center, frame.size.width, 30)];

        self.label1.textAlignment = NSTextAlignmentCenter;
        self.label1.font =[UIFont systemFontOfSize:17];
        self.label1.textColor = bgmmainColor;
         [self addSubview:self.label1];
        
//        self.userInteractionEnabled = YES;
//        UITapGestureRecognizer * tapGesture = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(clickView)];
//        [self addGestureRecognizer:tapGesture];

    }
    return self;
}
//- (void)clickView{
//    NSLog(@"asdfsafsafsa");
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
